﻿Partial Class Site
    Inherits System.Web.UI.MasterPage
    Dim nombrest As String

    Protected Sub LoginView1_ViewChanged(ByVal sender As Object, ByVal e As EventArgs) Handles LoginView1.ViewChanged

    End Sub

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click

    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load

        If Session("nrst") = Nothing Then
            Me.Button2.Visible = False
        Else
            nombrest = Session("nrst").ToString
            Me.Button2.Text = "Gestionar restaurante " & nombrest
        End If

    End Sub

    Sub plop(ByVal sender As Object, ByVal e As System.EventArgs)
        Me.Button2.Visible = False
        Session.Abandon()
    End Sub
End Class
